import Vue from "vue"
import Router from "vue-router"
// import Resource from "vue-resource";
import welcome from "../components/welcome"
import detail from "../pages/detail"
import placeorder from "../pages/placeorder"
import myorders from "../pages/myorders"
import drinkpicture from "../pages/drinkpicture"
import login from "../pages/login/login"
import register from "../pages/login/register"
Vue.use(Router);
// Vue.use(Resource);
export default new Router({
    routes: [{
        path: '/',
        component: welcome
    }, {
        path: '/detail',
        component: detail
    }, {
        path: '/placeorder',
        component: placeorder
    }, {
        path: '/myorders',
        component: myorders
    }, {
        path: '/drinkpicture',
        component: drinkpicture
    }, {
        path: '/login',
        component: login
    }, {
        path: '/register',
        component: register
    }]
})